/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package remote;

import java.io.IOException;
import java.net.MalformedURLException;



/**
 *
 * @author nuno
 */
public class main {

    public static void main(String[] args) throws MalformedURLException, IOException{
/*
    NFS2 n = new NFS2("nfs://127.0.0.1/c/rally","usb.zip");

    System.out.println(n.exists());
        if (n.fileisok()){
            n.downlaodFile("C:\\usb.zip");
        }
        else
            System.out.println("Ficheiro não existente, ou directoria incorrecta!");
 */
        remote.ftp f = new remote.ftp("glua.ua.pt", "ubuntu/", "anonymous", "anonymous");
        System.out.print(f.connect());
      //  f.downloadFile("ubuntu-9.04-alternate-amd64.iso.torrent");
        f.getContent().print(0);
        //System.out.print(f.getIS("ubuntu-9.04-alternate-amd64.iso.torrent"));
        //AMedia m = new AMedia(name, format, contype, data);
        //m.isBinary();
      // f.downloadFile("folder.png");
       f.disconnect();
 }
    


}
